import requset from '@/utils/request'

// 注册请求
export const regAPI = data => {
  return requset.post('/api/reg', data)
}

// 登录请求
export const loginAPI = data => {
  return requset.post('/api/login', data)
}

// 获取用户信息
export const getUserAPI = () => {
  return requset.get('/my/userinfo')
}
